home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: netcom.com!bnelson
- From: bnelson@netcom.com (Bob Nelson)
- Subject: Re: saving system()'s output to a C variable?
- Message-ID: <bnelsonDq5Ep3.Lo3@netcom.com>
- Organization: a computer running Linux
- X-Newsreader: TIN [version 1.2 PL2]
- References: <96104.233554U61441@uicvm.uic.edu> <4l5dtg$9d2@eccdb1.pms.ford.com>
- Date: Sat, 20 Apr 1996 06:43:51 GMT
- Sender: bnelson@netcom8.netcom.com
-
- On 18 Apr 1996 12:52:00 GMT, Mark J. Bobak wrote:
- >> In article <96104.233554U61441@uicvm.uic.edu>,
- >> Sikander Waheed <U61441@uicvm.uic.edu> wrote:
- >> > Is it possible to save the output of the system() command to
- >> >a C variable?
-
- >> No, not exactly. You can use popen() to open a stream and read the output
- >> of the command from the stream into a c variable.
-
- Please remember that this is a group strictly devoted to the C programming
- language and popen() has absolutely no relevance whatsoever to Standard C.
-
- --
- =============================================================================
- Bob Nelson: Dallas, Texas, U.S.A. - bnelson@netcom.com
- Linux for fun, M$ for $$$...and the NFL for what really counts!
- =============================================================================
-
-